package com.smasher.widget.snap;

import android.content.Context;

import androidx.recyclerview.widget.LinearSmoothScroller;

/**
 * use case
 * LayoutManager layoutManager=new LayoutManager(context)
 * TopSmoothScroller topSmoothScroller=new TopSmoothScroller(context)
 * topSmoothScroller.targetPosition = position
 * layoutManager.startSmoothScroll(topSmoothScroller)
 */
public class TopSmoothScroller extends LinearSmoothScroller {

    public TopSmoothScroller(Context context) {
        super(context);
    }

    @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;
    }

}
